package com.xj.demo.design;

public class HighScoreDecorator extends Decorator {
    public HighScoreDecorator(SchoolReport sr) {
        super(sr);
    }

    private void reportHighScore() {
        System.out.println("最高成绩数学70，语文75，英语80");
    }

    @Override
    public void report() {
        reportHighScore();
        super.report();
    }
}

